<!-- 底部模块 -->
<footer id="<?php echo $data['type']; ?>" class="bg-dark text-white py-12">
  <div class="container mx-auto px-4 sm:px-6 lg:px-8">
    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-8">
      <!-- 公司信息 -->
      <div>
        <h3 class="text-lg font-bold mb-4"><?php echo $data['content']['logo']['fullName']; ?></h3>
        <p class="text-gray-400 mb-6 text-sm leading-relaxed">
          <?php echo $data['content']['description']; ?>
        </p>
        <div class="flex space-x-4">
          <?php foreach($data['content']['socialLinks'] as $link){ ?>
          <a href="<?php echo $link['url']; ?>" class="text-gray-400 hover:text-white transition duration-300">
            <i class="fa fa-<?php echo $link['icon']; ?>"></i>
          </a>
          <?php } ?>
        </div>
      </div>
      
      <!-- 链接列 -->
      <?php foreach($data['content']['columns'] as $column){ ?>
      <div>
        <h3 class="text-lg font-bold mb-4"><?php echo $column['title']; ?></h3>
        <ul class="space-y-2 text-gray-400">
          <?php foreach($column['links'] as $link){ ?>
          <li><a href="<?php echo $link['href']; ?>" class="hover:text-white transition duration-300"><?php echo $link['name']; ?></a></li>
          <?php } ?>
        </ul>
      </div>
      <?php } ?>
      
      <!-- 联系信息 -->
      <div>
        <h3 class="text-lg font-bold mb-4">联系我们</h3>
        <ul class="space-y-3 text-gray-400">
          <li class="flex items-start">
            <i class="fa fa-map-marker mt-1 mr-3"></i>
            <span><?php echo $data['content']['contactInfo']['address']; ?></span>
          </li>
          <li class="flex items-center">
            <i class="fa fa-phone mr-3"></i>
            <span><?php echo $data['content']['contactInfo']['phone']; ?></span>
          </li>
          <li class="flex items-center">
            <i class="fa fa-envelope mr-3"></i>
            <span><?php echo $data['content']['contactInfo']['email']; ?></span>
          </li>
        </ul>
      </div>
    </div>
    
    <!-- 版权信息 -->
    <div class="border-t border-gray-800 pt-8">
      <div class="flex flex-col md:flex-row justify-between items-center">
        <p class="text-gray-500 text-sm mb-4 md:mb-0">
          <?php echo $data['content']['copyright']; ?>
        </p>
        <div class="flex space-x-6">
          <?php foreach($data['content']['bottomLinks'] as $link){ ?>
          <a href="<?php echo $link['href']; ?>" class="text-gray-500 hover:text-white text-sm transition duration-300"><?php echo $link['name']; ?></a>
          <?php } ?>
        </div>
      </div>
    </div>
  </div>
</footer>

<!-- 返回顶部按钮 -->
<button id="back-to-top" class="fixed bottom-6 right-6 w-12 h-12 rounded-full bg-primary text-white flex items-center justify-center shadow-lg opacity-0 invisible transition-all duration-300">
  <i class="fa fa-arrow-up"></i>
</button>